package com.github.phoenics.militia.bazookaFx.model;

import javafx.beans.property.LongProperty;
import javafx.beans.property.SimpleLongProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 * @author Phoenics Chow
 * on 2019年02月08日
 */
public class EntityModel implements IModel {
    @Override
    public void clear() {

    }
    private LongProperty id=new SimpleLongProperty();
    private LongProperty tableId=new SimpleLongProperty();
    private StringProperty entityCnName=new SimpleStringProperty();
    private StringProperty entityName=new SimpleStringProperty();
    private StringProperty entityComment=new SimpleStringProperty();
    private StringProperty tableName=new SimpleStringProperty();

    public long getId() {
        return id.get();
    }

    public LongProperty idProperty() {
        return id;
    }

    public void setId(long id) {
        this.id.set(id);
    }

    public long getTableId() {
        return tableId.get();
    }

    public LongProperty tableIdProperty() {
        return tableId;
    }

    public void setTableId(long tableId) {
        this.tableId.set(tableId);
    }

    public String getEntityCnName() {
        return entityCnName.get();
    }

    public StringProperty entityCnNameProperty() {
        return entityCnName;
    }

    public void setEntityCnName(String entityCnName) {
        this.entityCnName.set(entityCnName);
    }

    public String getEntityName() {
        return entityName.get();
    }

    public StringProperty entityNameProperty() {
        return entityName;
    }

    public void setEntityName(String entityName) {
        this.entityName.set(entityName);
    }

    public String getEntityComment() {
        return entityComment.get();
    }

    public StringProperty entityCommentProperty() {
        return entityComment;
    }

    public void setEntityComment(String entityComment) {
        this.entityComment.set(entityComment);
    }

    public String getTableName() {
        return tableName.get();
    }

    public StringProperty tableNameProperty() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName.set(tableName);
    }
}
